﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Scan
{
    public class GlobalCache
    {
        private static GlobalCache _inst;
        public static GlobalCache Instance
        {
            get 
            {
                if (_inst == null)
                    _inst = new GlobalCache();
                return _inst;
            }
        }

        //DatabaseManager databaseMgr = new DatabaseManager();
        //public DatabaseManager DatabaseMgr
        //{
        //    get { return databaseMgr; }
        //    set { databaseMgr = value; }
        //}

        WebServiceInterface webServiceIfe = new WebServiceInterface();
        public WebServiceInterface WebServiceIfe
        {
            get { return webServiceIfe; }
            set { webServiceIfe = value; }
        }

        PowerManager powerMgr = new PowerManager();
        public PowerManager PowerMgr
        {
            get { return powerMgr; }
            set { powerMgr = value; }
        }

        NetworkManager networkMgr = new NetworkManager();
        public NetworkManager NetworkMgr
        {
            get { return networkMgr; }
            set { networkMgr = value; }
        }

        TransManager transMgr = new TransManager();
        public TransManager TransMgr
        {
            get { return transMgr; }
            set { transMgr = value; }
        }

        BarcodeManager barcodeMgr = new BarcodeManager();
        public BarcodeManager BarcodeMgr
        {
            get { return barcodeMgr; }
            set { barcodeMgr = value; }
        }
    }
}
